<!doctype html>
<html>

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>代码烟花秀</title>
    <style>
        html,
        * {
            margin: 0;
            padding: 0
        }

        /*body {*/
        /*    width: 100vw;*/
        /*    height: 100vh;*/
        /*    !*display: flex;*!*/
        /*    !*align-items: center;*!*/
        /*    !*justify-content: center;*!*/
        /*    background-color: rgba(0, 0, 0, .9);*/
        /*    !*overflow: hidden;*!*/
        /*}*/

        body {
            background-image: url(bg.png);
            /*background-size: 100% 100%;*/
            /*background-size: 100%;*/
            background-size:100% auto ;
            object-fit: cover;
            background-repeat: no-repeat;
        }
        .demo {
            margin: 0 auto;
            /*width: 70%;*/
            width: 100%;
            height: 100%;
            /*background-image: url(bg.png);*/
            /*background-size:100% auto ;*/
            /*background-repeat: no-repeat;*/
        }

        h1 {
            margin: 150px auto 30px auto;
            text-align: center;
            font-family: 'Roboto';
        }
    </style>
</head>

<body>
<div class="demo">
</div>
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.js"></script>
<script src="fireworks.js"></script>
<script>
    $('.demo').fireworks({
        sound: true,
        opacity: 0.6,
        width: '40%',
        height: '100%'
    });
</script>


</body>

</html>
